export default [
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {
        path: '/user/login',
        component: './user/login',
      },
    ],
  },
  // {
  //   path: '/',
  //   component: '../layouts/SecurityLayout',
  //   routes: [
  //
  //   ],
  {
    path: '/',
    Routes: ['src/pages/Authorized'],
    component: '../layouts/BasicLayout',
    // authority: ['admin', 'user'],
    // authority: ['admin', 'user'],
    routes: [
      {
        path: '/',
        redirect: '/welcome',
      },
      {
        name: 'exception',
        path: '/exception',
        hideInMenu: true,
        routes: [
          {
            path: '/exception',
            redirect: '/exception/404',
          },
          {
            name: '403',
            path: '/exception/403',
            component: './exception/403',
          },
          {
            name: '404',
            path: '/exception/404',
            component: './exception/404',
          },
          {
            name: '500',
            path: '/exception/500',
            component: './exception/500',
          },
        ],
      },
      {
        path: '/articles',
        name: 'articles',
        icon: 'file-word',
        routes: [
          {
            path: '/articles/list',
            name: 'list',
            icon: 'smile',
            // authority: ['admin'],
            // authority: 'ggc',
            component: './articles/list',
          },
          {
            path: '/articles/publish',
            name: 'publish',
            icon: 'smile',
            component: './articles/publish/index.tsx',
          },
          {
            path: '/articles/edit',
            name: 'edit',
            icon: 'smile',
            component: './articles/publish/index.tsx',
            // hideInMenu:true
          },
        ],
      },

      {
        path: '/welcome',
        name: 'welcome',
        icon: 'smile',
        component: './Welcome',
      },
      {
        path: '/demo',
        name: 'demo',
        icon: 'smile',
        routes: [
          {
            path: '/demo/one',
            name: 'one',
            component: './demo/one',
          },
          {
            path: '/demo/form',
            name: 'form',
            component: './demo/form/index.tsx',
          },
          {
            path: '/demo/chart',
            name: 'demo-chart',
            component: './demo/chart/index.tsx',
          },
        ],
      },
      {
        path: '/form/basic-form',
        name: 'basic-form',
        component: './form/basic-form',
      },
      {
        path: '/account',
        name: 'account',
        icon: 'file-word',
        routes: [
          {
            path: '/account/admin',
            name: 'admin',
            icon: 'smile',
            routes: [
              {
                path: '/account/admin',
                name: 'list',
                icon: 'smile',
                redirect: '/account/admin/list',
              },

              {
                path: '/account/admin/list',
                name: 'list',
                icon: 'smile',
                component: './account/admin/list',
              },
              {
                path: '/account/admin/save/:id',
                name: 'save',
                icon: 'smile',
                component: './account/admin/save',
              },
            ]
          },
          {
            path: '/account/role',
            name: 'role',
            icon: 'smile',
            routes: [
              {
                path: '/account/role',
                name: 'list',
                icon: 'smile',
                redirect: '/account/role/list',
              },

              {
                path: '/account/role/list',
                name: 'list',
                icon: 'smile',
                component: './account/role/list',
              },
            ]
          },
          {
            path: '/account/menu',
            name: 'menu',
            icon: 'smile',
            routes: [
              {
                path: '/account/menu',
                name: 'list',
                icon: 'smile',
                redirect: '/account/menu/list',
              },

              {
                path: '/account/menu/list',
                name: 'list',
                icon: 'smile',
                component: './account/menu/list',
              },
              {
                path: '/account/menu/save/:id',
                name: 'save',
                icon: 'smile',
                component: './account/menu/save',
              },
            ]
          },
        ],
      },
      {
        path: '/system',
        name: 'system',
        routes: [
          {
            path: '/system/notice',
            name: 'notice',
            component:'./system/notice'
          }
        ]
      },
      {
        component: './404',
      },
    ],
  },
];
